package com.act.moudles.act.pojo;


import com.act.utils.validations.TaskGroup;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import java.util.HashMap;
import java.util.Map;

/**
 * 执行中任务的入参
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class TaskRunPojo {

    /**
     * 流程Id
     */
    @NotEmpty(message = "流程ID不能为空" ,groups = {TaskGroup.webComGroup.class})
    private String procId;

    /**
     * 用户流程key
     */
    @NotEmpty(message = "用户流程key为空" ,groups = {TaskGroup.webComGroup.class})
    private String userFlowKey;

    /**
     * 处理人
     */
    @NotEmpty(message = "处理人不能为空" ,groups = {TaskGroup.webComGroup.class})
    private String assgine;

    /**
     * 入参
     */
    private Map<String,Object> paramMap = new HashMap<>();

    /**
     * 备注
     */
    private String comment;


    /**
     * 密钥
     */
    private String secretKey;

}
